package cn.anecansaitin.jep.parser.ast.node.statement;

import cn.anecansaitin.jep.parser.ast.node.expression.Identifier;

import java.util.List;

public class ClassDeclaration extends Statement{
    private final Identifier name;
    private final Identifier superClass;
    private final List<Statement> members;

    public ClassDeclaration(Identifier name, Identifier superClass, List<Statement> members,int line, int column) {
        super(line, column);
        this.name = name;
        this.superClass = superClass;
        this.members = members;
    }

    public Identifier name() {
        return name;
    }

    public Identifier superClass() {
        return superClass;
    }

    public List<Statement> members() {
        return members;
    }
}